﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using EDTS.Weixin;
using EDTS.Weixin.Requests;
using EDTS.Logic.Users;
namespace EDTS.Logic.Weixin.Processors
{
    /// <summary>
    /// 关注和取消关注 处理器
    /// </summary>
    public class Subscribe:IProcessor
    {
        EventMsg _msg;
        public Subscribe(EventMsg msg)
        {
            _msg = msg;
        }
        public Subscribe() { }

        public void Excute()
        {
            var it = _msg.Event.ToString().ToLower() == "subscribe";
            UserLogic.Interest(_msg.FromUserName, it);
        }
    }
}
